//
//  OrderViewController.h
//  ShoppingExperience
//
//  Created by LiYinDi on 15-5-20.
//  Copyright (c) 2015年 RuiBen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "ZJSwitch.h"
@protocol OrderDelegate;
@interface OrderViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate>
{
//    BOOL isDown;
//    int num;
  //  NSTimer * timer;
 //   NSString *stringValue;
}
@property(nonatomic)NSTimer *timer;
@property(nonatomic,weak) id<OrderDelegate> delegate;
@property(nonatomic,strong)NSString *isLoad;
@property(nonatomic,strong)IBOutlet UITextField *searchTextField;
//@property(weak, nonatomic)IBOutlet UIButton *orderBackBtn;
@property(weak, nonatomic)IBOutlet UIView *searchViewContainer;
@property(weak, nonatomic)IBOutlet UIButton *orderFilterBtn;
@property(weak, nonatomic)IBOutlet UILabel *orderFilterTitleLabel;
@property(weak, nonatomic)IBOutlet UIImageView *orderFilterImage;


@property(nonatomic)UIImageView *lineImageView;
@property(weak, nonatomic) UIImageView *bgImageView;
@property(weak, nonatomic)  UIButton *scanCancelBtn;
@property(nonatomic) BOOL isReading;
@property(nonatomic,strong) AVCaptureSession *captureSession;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;

@property(weak, nonatomic)IBOutlet UITableView *orderListTabelView;
@property(weak, nonatomic)IBOutlet UILabel *totalOrderLabel;
//searchMemberViewContainer
@property(weak, nonatomic)IBOutlet UIView *searchMemberViewContainer;
@property(weak, nonatomic)IBOutlet UIButton *searchMemberAlphaView;
@property(weak, nonatomic)IBOutlet UITextField *searchMemberTextField;
@property(weak, nonatomic)IBOutlet UITableView *searchMemberTableView;
@property(weak, nonatomic)IBOutlet UILabel *totalMemberLabel;
//orderFilterViewContainer

@end
@protocol OrderDelegate <NSObject>
@optional
-(void)orderBackClick;
-(void)OrderShopCtarClick;
@end
